import SynchronizationLoginNork from '@/utils/SynchronizationLoginWork'
import Synchronization from "@/utils/Synchronization"

export interface UpperInventoryDataS{
    inDtos: inDtos[],
    inDtosRough: inDtosRough[],
    outDtos: outDtos[]
}

export interface VampInventoryDataParameters{
    lotNo:number,
    slipDateEnd	:string,
    slipDateStart :string,
    style :string,
}

interface inDtos{
    deptName: string,
    qty: number
        
}

interface inDtosRough {
    deptName: string,
    qty: number
}

interface outDtos {
    deptName: string,
    qty: number
}

export const UpperInventoryData = (parms:VampInventoryDataParameters) => {
    return Synchronization.put<any,UpperInventoryDataS>(`/pcFactorQuery/queryStitchDeptHead`,parms)
}

export interface DepartmentParameter{
    deptName:string
    slipType:string
}

export const DepartmentalData = (parms:DepartmentParameter) => {
    return Synchronization.get('/pcFactorQuery/queryStitchDeptDetail',{
        params:{deptName:parms.deptName,slipType:parms.slipType}
    })
}

// 缴库部门
export const QueryDeptName = () => {
    return Synchronization.get(`/pcFactorQuery/stitchIn/back?search=${''}`)
}